using NewFormatProject.Infrastructure.EFCore;
using NewFormatProject.Infrastructure.Dto.Requests.Objects;
namespace NewFormatProject.Server.Instances.Extends.Requests
{
	public static class EntitySysRightsExtend
{
		public static SysRights ToEntity(this RequestSysRightsDto dto)
		{
			return new SysRights
			{
				RId = dto.id,
				RName = dto.name,
				RUrl = dto.url,
				RIsBan = dto.isBan??0,
				RParentId = dto.parentId,
				RHasMenu = dto.hasMenu,
			};
		}
	}
}
